import api from '../index'

export let login = (from) => {
  return api.post('/user/login', from)
}
export let addScript = (from) => {
  return api.post('/script/add', from)
}
export let getMyScripts = () => {
  return api.get('/script/get/own')
}
export let changeStatus = (scriptId, status) => {
  return api.get(`/script/change/status/${scriptId}/${status}`)
}
export let checkToken = () => {
  return api.get('/user/checkToken')
}



